# 给定一个元组my_tuple，里面包含1, 2, 3, 4, 5, 6, 7, 8, 9元素，要求统计数字元组中, 奇数的个数
my_tuple = (1, 2, 3, 4, 5, 6, 7, 8, 9)

count = 0
for i in my_tuple:
    if i % 2 == 1:
        count += 1

print(f"奇数的个数是:{count}") # 奇数的个数是:5
